package com.bobbygu.server.simpleapp.controller;

import com.bobbygu.server.simpleapp.mapper.ShowListMapper;
import com.bobbygu.server.simpleapp.model.response.BaseResponse;
import com.bobbygu.server.simpleapp.model.response.ConstResponse;
import com.bobbygu.server.simpleapp.model.response.ResultResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ShowListController {
    @SuppressWarnings("SpringJavaAutowiringInspection")
    @Autowired
    private ShowListMapper showListMapper;

    @RequestMapping("/home/showList")
    public BaseResponse showList() {
        System.out.println("showList");
        return new ResultResponse(showListMapper.selectAll(), ConstResponse.DESC_OK, ConstResponse.STATUS_OK);
    }
}
